package com.ld.poetry.im.http.entity;

import lombok.Data;

import java.util.concurrent.atomic.AtomicInteger;



public class OnlineUserManager {

    private static final AtomicInteger onlineUserCount = new AtomicInteger(0);
    public static  boolean panduan = false;

    public static void increment() {
        onlineUserCount.incrementAndGet();
    }

    public static void decrement() {
        onlineUserCount.decrementAndGet();
    }

    public static int getOnlineUserCount() {
        return onlineUserCount.get();
    }

    // You can add more methods as needed
}
